package com.lxmes.hr.service;

import java.util.List;
import com.lxmes.hr.domain.NcPieceworkMoneyDetail;

/**
 * 计件工资明细Service接口
 *
 * @author ruoyi
 * @date 2023-01-16
 */
public interface INcPieceworkMoneyDetailService
{
    /**
     * 查询计件工资明细
     *
     * @param id 计件工资明细主键
     * @return 计件工资明细
     */
    public NcPieceworkMoneyDetail selectNcPieceworkMoneyDetailById(Long id);

    /**
     * 查询计件工资明细列表
     *
     * @param ncPieceworkMoneyDetail 计件工资明细
     * @return 计件工资明细集合
     */
    public List<NcPieceworkMoneyDetail> selectNcPieceworkMoneyDetailList(NcPieceworkMoneyDetail ncPieceworkMoneyDetail);

    /**
     * 新增计件工资明细
     *
     * @param ncPieceworkMoneyDetail 计件工资明细
     * @return 结果
     */
    public int insertNcPieceworkMoneyDetail(NcPieceworkMoneyDetail ncPieceworkMoneyDetail);

    /**
     * 修改计件工资明细
     *
     * @param ncPieceworkMoneyDetail 计件工资明细
     * @return 结果
     */
    public int updateNcPieceworkMoneyDetail(NcPieceworkMoneyDetail ncPieceworkMoneyDetail);

    /**
     * 批量删除计件工资明细
     *
     * @param ids 需要删除的计件工资明细主键集合
     * @return 结果
     */
    public int deleteNcPieceworkMoneyDetailByIds(Long[] ids);

    /**
     * 删除计件工资明细信息
     *
     * @param id 计件工资明细主键
     * @return 结果
     */
    public int deleteNcPieceworkMoneyDetailById(Long id);

    String imporIteminfo(List<NcPieceworkMoneyDetail> userList, boolean updateSupport, String operName);

    int readTotal();
}
